package Guigu11.Overwrite;

public class Studen extends Human{

	String major;
	
	public Studen()
	{
		
	}
	
	public Studen(String major)
	{
		this.major = major;
	}
	
	public void study()
	{
		System.out.println("学习，专业是"+major);
	}
	
	//重写方法
	public void eat()
	{
		System.out.println("学生应该多吃有营养的食物");
	}
}
